﻿using System;
using UnityEngine;

// Token: 0x020000A4 RID: 164
public class MortalObj : MonoBehaviour
{
	// Token: 0x0600052B RID: 1323 RVA: 0x0001E858 File Offset: 0x0001CA58
	private void Start()
	{
	}

	// Token: 0x0600052C RID: 1324 RVA: 0x0001E85C File Offset: 0x0001CA5C
	private void Update()
	{
		this.timer += Time.deltaTime;
		if (this.timer > this.spanOfLife)
		{
			UnityEngine.Object.Destroy(base.gameObject);
		}
	}

	// Token: 0x04000421 RID: 1057
	public float spanOfLife = 1f;

	// Token: 0x04000422 RID: 1058
	public bool rememberChilds = true;

	// Token: 0x04000423 RID: 1059
	private float timer;
}
